package cn.yh.shop.admin.model;

import java.sql.Timestamp;
import java.util.List;

/**
 * @Description:管理员信息类
 * @author:"许荣斐"
 * @time:2016年12月14日 下午6:34:38
 */
public class Admin implements java.io.Serializable {

	/**
	 * @Description: serialVersionUID : serialVersionUID
	 */
	private static final Long serialVersionUID = 1L;
	/**
	 * @Description: id : 管理员id
	 */
	private Integer id;
	/**
	 * @Description: name : 管理员名字
	 */
	private String name;
	/**
	 * @Description: realName : 管理员真实名字
	 */
	private String realName;
	/**
	 * @Description: pwd :管理员密码
	 */
	private String pwd;
	/**
	 * @Description: phone : 管理员电话
	 */
	private String phone;
	/**
	 * @Description: duty : 职务
	 */
	private String duty;
	/**
	 * @Description: photo : 头像
	 */
	private String photo;
	/**
	 * @Description: hiredate : 入职时间
	 */
	private Timestamp hiredate;
	
	/**
	 * @Description: status : admin的状态  0：禁用   1：正常
	 */
	private int status;
	
	/**
	 * @Description: roleIdList : 角色id列表
	 */
	private List<Integer> roleIdList;

	/**
	 * @Description:默认构造方法
	 */
	public Admin() {
	}

	/**
	 * @Description:带参构造方法
	 */
	public Admin(Integer id, String name, String realName, String pwd, String phone, String duty, String photo,
			Timestamp hiredate) {
		super();
		this.id = id;
		this.name = name;
		this.realName = realName;
		this.pwd = pwd;
		this.phone = phone;
		this.duty = duty;
		this.photo = photo;
		this.hiredate = hiredate;
	}
	/**
	 * @Description:带参构造方法
	 */
	public Admin( String name) {
		
		this.name = name;
		
	}

	/**
	 * @return the duty
	 */
	public String getDuty() {
		return duty;
	}

	/**
	 * @param duty the duty to set
	 */
	public void setDuty(String duty) {
		this.duty = duty;
	}

	/**
	 * @return the photo
	 */
	public String getPhoto() {
		return photo;
	}

	/**
	 * @param photo the photo to set
	 */
	public void setPhoto(String photo) {
		this.photo = photo;
	}

	/**
	 * @return the hiredate
	 */
	public Timestamp getHiredate() {
		return hiredate;
	}

	/**
	 * @param hiredate the hiredate to set
	 */
	public void setHiredate(Timestamp hiredate) {
		this.hiredate = hiredate;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	/**
	 * @return the roleIdList
	 */
	public List<Integer> getRoleIdList() {
		return roleIdList;
	}

	/**
	 * @param roleIdList the roleIdList to set
	 */
	public void setRoleIdList(List<Integer> roleIdList) {
		this.roleIdList = roleIdList;
	}
	
	

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	public String toString() {
		return "admin信息：["+"角色名:"+name+"pwd:"+pwd+";真实姓名:"+realName+";联系电话:"+phone+"]";
	}

}